package com.dream.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.dream.model.Resource;
import com.dream.model.DTO.MenuDto;

/**
 * Resource 表数据库控制层接口
 */
public interface ResourceMapper extends BaseMapper<Resource> {

   /**
    * 获取菜单父类节点
    * @return
    */
 List<MenuDto> getFatherMenuByUserId(@Param("id")long id);
	
   /**
	* 根据父类id获取子类节点
	* @param id
	* @return
	*/
 List<MenuDto> getChildMenuByPid(@Param("id")long id);
 
}